package builder;

public class LoverLetterDirector {
    public LoveLetter getLetter(LetterBuilder builder) {
        builder.writeAppointment();
        builder.writeCallName();
        builder.writeConfession();
        builder.writePraise();
        return builder.build();
        //自定义构造逻辑
//        LoveLetter letter = builder.letter;
//        LoveLetter loveLetter = new LoveLetter();
//        loveLetter.setAppointment(letter.getAppointment());
//        loveLetter.setCallName(letter.getCallName());
//        loveLetter.setPraise(letter.getPraise());
//        return loveLetter;
    }
}
